<!-- 进度条配置 -->
<template>
  <div style="margin-top: 16px">
    <el-form-item label="间距">
      <el-input-number
        v-model="myConfig.split"
        controls-position="right"
        :max="200"
      ></el-input-number>
    </el-form-item>
    <el-form-item :label="$t('边框')" class="form_item_margin">
      <span class="l_color_box r_margin_right8">
        <l-input-color
          v-model="myConfig.borderColor"
          :notInput="true"
        ></l-input-color>
      </span>
      <el-input
        v-model="myConfig.borderColor"
        class="r_96width r_margin_right8"
      >
      </el-input>
      <el-input
        v-model="myConfig.strokeWidth"
        class="r_56width"
        oninput="value=value.replace(/[^\d]/g,'')"
      >
        <span slot="suffix" style="line-height: 32px">px</span>
      </el-input>
    </el-form-item>
    <el-form-item :label="$t('字体')" class="form_item_margin">
      <span class="l_color_box r_margin_right8">
        <l-input-color
          v-model="myConfig.color"
          :notInput="true"
        ></l-input-color>
      </span>
      <el-input v-model="myConfig.color" class="r_96width r_margin_right8">
      </el-input>
      <el-input
        v-model="myConfig.fontSize"
        class="r_56width"
        oninput="value=value.replace(/[^\d]/g,'')"
      >
        <span slot="suffix" style="line-height: 32px">px</span>
      </el-input>
    </el-form-item>
    <el-form-item label="文字粗细">
      <l-select v-model="myConfig.FontWeight" :options="dicOption.fontWeightOptions">
      </l-select>
    </el-form-item>
    <el-form-item :label="$t('前缀字体')" class="form_item_margin">
      <span class="l_color_box r_margin_right8">
        <l-input-color
          v-model="myConfig.suffixColor"
          :notInput="true"
        ></l-input-color>
      </span>
      <el-input
        v-model="myConfig.suffixColor"
        class="r_96width r_margin_right8"
      >
      </el-input>
      <el-input
        v-model="myConfig.suffixFontSize"
        class="r_56width"
        oninput="value=value.replace(/[^\d]/g,'')"
      >
        <span slot="suffix" style="line-height: 32px">px</span>
      </el-input>
    </el-form-item>
    <el-form-item label="前缀粗细">
      <l-select
        v-model="myConfig.suffixFontWeight"
        :options="dicOption.fontWeightOptions"
      >
      </l-select>
    </el-form-item>
  </div>
</template>

<script>
import { dicOption } from "../../mixins/config";
export default {
  data() {
    return {
      dicOption: dicOption,
    };
  },
  props: {
    config: {
      type: Object,
      default: () => ({}),
    },
  },
  computed: {
    myConfig() {
      return this.config;
    },
  },
};
</script>

<style>
</style>